<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Registration</title>
<script language="javascript" type="text/javascript" src="http://localhost/greed_island/js/ajax.js" ></script>
</head>

<body>
<form name="myForm" action="register.php" method="POST" style="width:500px;float:left;border:solid 1px black;padding:20px;">
<h3>Register</h3>
<table>

<tr><td><p>Email </p> </td></tr>
<tr><td><input type="text" name="email" id="myemail" onkeyup="ajaxFunction('checkmyemail.php','myemail','emailcheck');" /></td><td><div id="emailcheck" style="color:red;float:left;"></div></td></tr>
<tr><td><p>Username</p></td></tr>
<tr><td><input type="text" name="username" id="username" onkeyup="ajaxFunction('checkuser.php','username','usercheck');" /></td><td><div id="usercheck" style="color:red;float:left;"></div></td></tr>
<tr><td><p>Password</p></td></tr>
<tr><td><input type="password" name="password" id="password" onkeyup="ajaxFunction('checkpass.php','password','passcheck');" /></td><td><div id="passcheck" style="color:red;float:left;"></div></td></tr>
</table><p>Confirm Password</p>
<input type="password" name="passconf" />
<br /><br />
<input type="submit" value="Register" />
</form>
<div style="margin-left:20px;;text-align:center;">
Registration is free and easy. No need to confirm your email.
<br />Although a valid email is needed to recover your password if you ever lose it.<br /><br /><br /></div>
<div style="margin-left:20px;;text-align:center;color:red;font-size:130%;">
<?php 
session_start();
for ($z=0;$z<12;$z++)
	{  
	$svar="error".$z;
	 if (isset($_SESSION[$svar]))
		echo $_SESSION[$svar]." <br />";
		
	}
session_unset(); 

?>
</div>
</body>
</html>